package cn.edu.sgu.www.mhxysy.entity.baoshi;

import cn.edu.sgu.www.mhxysy.consts.IdentifierPrefixes;
import cn.edu.sgu.www.mhxysy.util.StringUtils;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 宝石
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("baoshi")
public class Baoshi implements Serializable {
	private static final long serialVersionUID = 18L;

	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value = "ID")
	private String id;

	/**
	 * 宝石等级
	 * 取值范围：[1, 13]
	 */
	@ApiModelProperty(value = "宝石等级")
	private Integer grade;

	/**
	 * 角色ID
	 */
	@ApiModelProperty(value = "角色ID")
	private String roleId;

	/**
	 * 宝石类型ID
	 */
	@ApiModelProperty(value = "宝石类型ID")
	private Integer categoryId;

	/**
	 * 镶嵌状态
	 * 0-未镶嵌；1-已镶嵌
	 */
	@ApiModelProperty(value = "镶嵌状态")
	private Integer inlayStatus;

	public String uuid() {
		return IdentifierPrefixes.PREFIX_ZBBS + StringUtils.uuid();
	}

}